<!DOCTYPE html>
<html lang="en">

<head>
   <meta charset="utf-8">
   <link rel="stylesheet" href="/css/AdminUser/adminuser.css">
   <!-- 公共 cs 文件 -->
   <%- include('../commont/Link'); %>
      <title>会员列表</title>
</head>

<body>
   <!-- 公共的部分 -->
   <%- include('../commont/Header', {user: user}); %>
      <div id="mws-wrapper">
         <!-- 左侧导航 -->
         <%- include('../commont/Navigator', {curNav: curNav}); %>
            <div id="mws-container" class="clearfix">
               <!-- 内容区域 -->
               <div class="container">
                  <!-- 会员用户展示列表 -->
                  <div class="mws-panel grid_8">
                     <div class="mws-panel-header">
                        <span><i class="icon-table"></i> 会员用户列表</span>
                     </div>
                     <div class="mws-panel-body no-padding">
                        <div id="DataTables_Table_1_wrapper" class="dataTables_wrapper" role="grid">
                           <div id="DataTables_Table_1_length" class="dataTables_length">
                              <label>显示
                                 <select size="1"
                                    name="DataTables_Table_1_length" aria-controls="DataTables_Table_1">
                                    <option value="10" selected="selected">10</option>
                                    <option value="25">25</option>
                                    <option value="50">50</option>
                                    <option value="100">100</option>
                                 </select> 条
                              </label>
                           </div>
                           <div class="dataTables_filter" id="DataTables_Table_1_filter">
                              <label>搜索: 
                                 <input type="text" aria-controls="DataTables_Table_1">
                                 <button class="btn btn-inverse btn-search" href="/homeuser/usersearch">搜索</button>
                              </label>
                           </div>
                           <!-- 弹出层 -->
                           <a class="btn btn-danger btn-normal" style="display: none; float: left;" href="/homeuser/userlist">未找到对应会员用户</a>
                           <table class="mws-datatable-fn mws-table dataTable" id="DataTables_Table_1"
                              aria-describedby="DataTables_Table_1_info">
                              <thead>
                                 <tr role="row">
                                    <th class="sorting_asc" role="columnheader" tabindex="0"
                                       aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-sort="ascending"
                                       aria-label="Rendering engine: activate to sort column descending"
                                       style="width: 258px;">序号</th>
                                    <th class="sorting" role="columnheader" tabindex="0"
                                       aria-controls="DataTables_Table_1" rowspan="1" colspan="1"
                                       aria-label="Browser: activate to sort column ascending" style="width: 333px;">
                                       会员名称</th>
                                    <th class="sorting" role="columnheader" tabindex="0"
                                       aria-controls="DataTables_Table_1" rowspan="1" colspan="1"
                                       aria-label="CSS grade: activate to sort column ascending" style="width: 171px;">
                                       操作</th>
                                 </tr>
                              </thead>
                              <tbody role="alert" aria-live="polite" aria-relevant="all">
                                 <% data.forEach((v, i) => { %>
                                    <tr class="<%= i % 2 ? 'odd' : 'even' %>" align="center">
                                       <td><%= i + 1 %></td>
                                       <td><%= v.username %></td>
                                       <td data-uid="<%= v.id %>" align="center">
                                          <a class="btn btn-small btn-primary btn-userinfo" href="/homeuser/userinfo?uid=<%= v.id %>" title="详细信息">
                                             <i class="icon-list-2"></i>
                                          </a>
                                          <a class="btn btn-small btn-warning btn-address" href="/homeuser/useraddress?username=<%= v.username %>" title="收货地址">
                                             <i class="icon-truck"></i>
                                          </a>
                                       </td>
                                   </tr>
                                 <%})%>
                              </tbody>
                           </table>
                        </div>
                     </div>
                  </div>
               </div>
               <!-- 中框底部区域 -->
               <%- include('../commont/Footer'); %>
            </div>
      </div>
      <!-- 公共 js 文件 -->
      <%- include('../commont/Script'); %>
      <!-- 个人引入 -->
      <script src="/js/HomeUser/homeuser.js"></script>
</body>

</html>